<template>
  <div class="pagetools">
    <el-card>
      <div class="box">
        <div class="left">
          <div class="content" v-if="showleft">
            <slot name="left">
              <i class="el-icon-info"> </i>
              <span> 本月: 社保在缴 公积金在缴 增员 减员 入职 离职 </span>
            </slot>
          </div>
        </div>
        <div class="right">
          <slot name="right">
            <el-button type="primary" size="mini">历史档案</el-button>
            <el-button type="primary" size="mini">导出</el-button>
          </slot>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  // 布尔值 控制左侧内容是否显示
  props: ['showleft']
}
</script>

<style lang="scss">
.pagetools {
  .box {
    display: flex;
    justify-content: space-between;
    .left {
      .content {
        border: 1px solid #d1edff;
        background-color: #e6f7ff;
        padding: 4px 6px;
        i {
          color: #409eff;
          margin-left: 10px;
        }
      }
    }
  }
}
</style>
